// 变量
$baseColor:#ff841d;
body {
    background-color: #eee;
}

// 头部
header {
    height: 50px;
    background-color: $baseColor;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    // 设置子项在侧轴y轴的对齐方式 
    align-items: center;
    .logo {
        width: 185px;
    }
    .download {
        width: 34px;
    }
}

// 搜索
.search {
    height: 50px;
    padding: 10px;
    position: relative;
    background-color: #fff;
    input {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        font-size: 16px;
        padding-left: 20px;
        background-color: #f1f1f1;
    }
    button {
        background-color: $baseColor;
        color: #fff;
        position: absolute;
        padding: 15px 17px;
        border-radius: 15px;
        top: 10px;
        right: 5px;
        line-height: 0;
        font-size: 14px;
    }
}

//brand_home部分开始
.brand_home {
    height: 40px;
    background-color: #ebebeb;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#ebebeb));
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    line-height: 40px;
    padding-left: 10px;
    >a {
        display: inline-block;
    }
}

//brand_hot 部分开始
.brand_hot {
    height: 40px;
    margin: 10px 5px;
    line-height: 40px;
    padding-left: 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    >h4 {
        color: #874604;
    }
}

//nav部分开始
nav {
    background-color: #eee;
    padding: 0 10px;
    >a {
        height: 40px;
        border-bottom: 1px solid #ccc;
        line-height: 40px;
        color: black;
        font-weight: 600;
        position: relative;
        >i {
            font-style: normal;
            position: absolute;
            color: #777;
            right: 10px;
            top: 50%;
            transform: translate(0, -50%);
        }
    }
}

//brand_footer部分开始
.brand_footer {
    height: 40px;
    background-color: #efefef;
    border-top: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
    display: flex;
    margin-top: 25px;
    >a {
        flex: 1;
        align-items: center;
        text-align: center;
        line-height: 40px;
        display: inline;
    }
    >a:last-child {
        padding-left: 20px;
        padding-right: 20px;
        >img {
            display: inline-block;
            width: 20px;
            height: 20px;
            padding-right: 4px;
            padding-top: 6px;
        }
    }
}

//brand_list部分开始
.brand_list {
    height: 80px;
    text-align: center;
    >p:first-child {
        padding-top: 20px;
        >a:first-child {
            color: red;
        }
    }
    >p {
        font-size: 12px;
        >a {
            display: inline;
        }
    }
}